package com.bw.cinema.service

import com.bw.cinema.api.MutilTypeApi
import com.bw.cinema.entity.MutilTypeEntity
import com.bw.lib_net.BaseRes
import com.bw.lib_net.RetrofitFactory
import retrofit2.http.Query

class MutilTypeService {
    private val api: MutilTypeApi

    init {
        api = RetrofitFactory.getRetrofit().create(MutilTypeApi::class.java)
    }

    suspend fun getMutilType(): BaseRes<List<MutilTypeEntity>> {
        return api.getMutilType()
    }

    suspend fun getSubMutilType(id: Int): BaseRes<List<MutilTypeEntity>> {
        return api.getSubMutilType(id)
    }
}
